package org.neframework.webtest.model;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

import com.tmsps.neframework.core.utils.GenerateTools;
import com.tmsps.neframework.jpa.annotation.Id;
import com.tmsps.neframework.jpa.annotation.NotMap;
import com.tmsps.neframework.jpa.annotation.Table;
import com.tmsps.neframework.jpa.model.DbModel;

/**
 * 客户信用卡
 * 
 * @author 冯晓东 398479251
 *
 */
@Table
public class t_s_customer_card implements DbModel {
	@NotMap
	private static final long serialVersionUID = 1L;
	@Id
	private String kid;
	private int status = 0;
	private Timestamp created = new Timestamp(System.currentTimeMillis());

	private String customer_id;

	private String card_no;// 信用卡卡号
	private String bank;// 银行名称
	private String bank_id;
	private BigDecimal money_max;// 固定额度
	private BigDecimal money_max_temp;// 临时额度
	private BigDecimal money_max_super;// 超限额度

	private Date date;// 开卡日期
	private String is_other_card;// 附属卡: 有 or 无

	private String is_past;// 逾期情况: 有 or 无
	private int past_cnt;// 逾期次数

	private BigDecimal money_remain;// 卡内余额

	private String back_type;// 还款方式
	private String card_type;// 卡种

	private Date end_date;// 有效期
	private String bill_type;// 账单投递方式

	private int bill_day;// 账单日
	private int bill_back_day;// 最后还款日

	private String pwd_query;// 查询密码
	private String pwd_pay;// 交易密码

	private String note;// 备注

	// =========== get / set () ====================

	public String getKid() {
		return kid;
	}

	public void setKid(String kid) {
		this.kid = kid;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public String getBank_id() {
		return bank_id;
	}

	public void setBank_id(String bank_id) {
		this.bank_id = bank_id;
	}

	public String getCustomer_id() {
		return customer_id;
	}

	public void setCustomer_id(String customer_id) {
		this.customer_id = customer_id;
	}

	public String getCard_no() {
		return card_no;
	}

	public void setCard_no(String card_no) {
		this.card_no = card_no;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public BigDecimal getMoney_max() {
		return money_max;
	}

	public void setMoney_max(BigDecimal money_max) {
		this.money_max = money_max;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getIs_other_card() {
		return is_other_card;
	}

	public void setIs_other_card(String is_other_card) {
		this.is_other_card = is_other_card;
	}

	public String getIs_past() {
		return is_past;
	}

	public void setIs_past(String is_past) {
		this.is_past = is_past;
	}

	public int getPast_cnt() {
		return past_cnt;
	}

	public void setPast_cnt(int past_cnt) {
		this.past_cnt = past_cnt;
	}

	public BigDecimal getMoney_remain() {
		return money_remain;
	}

	public void setMoney_remain(BigDecimal money_remain) {
		this.money_remain = money_remain;
	}

	public String getBack_type() {
		return back_type;
	}

	public void setBack_type(String back_type) {
		this.back_type = back_type;
	}

	public String getCard_type() {
		return card_type;
	}

	public void setCard_type(String card_type) {
		this.card_type = card_type;
	}

	public Date getEnd_date() {
		return end_date;
	}

	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}

	public String getBill_type() {
		return bill_type;
	}

	public void setBill_type(String bill_type) {
		this.bill_type = bill_type;
	}

	public int getBill_day() {
		return bill_day;
	}

	public void setBill_day(int bill_day) {
		this.bill_day = bill_day;
	}

	public int getBill_back_day() {
		return bill_back_day;
	}

	public void setBill_back_day(int bill_back_day) {
		this.bill_back_day = bill_back_day;
	}

	public String getPwd_query() {
		return pwd_query;
	}

	public void setPwd_query(String pwd_query) {
		this.pwd_query = pwd_query;
	}

	public String getPwd_pay() {
		return pwd_pay;
	}

	public void setPwd_pay(String pwd_pay) {
		this.pwd_pay = pwd_pay;
	}

	public BigDecimal getMoney_max_super() {
		return money_max_super;
	}

	public void setMoney_max_super(BigDecimal money_max_super) {
		this.money_max_super = money_max_super;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public BigDecimal getMoney_max_temp() {
		return money_max_temp;
	}

	public void setMoney_max_temp(BigDecimal money_max_temp) {
		this.money_max_temp = money_max_temp;
	}

	public static void main(String[] args) {
		for (int i = 0; i < 100; i++) {
			System.err.println(GenerateTools.getBase58ID());
		}
	}
}
